.class Lcom/waiqin365/lightapp/kehu/a;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 13

    const v12, 0x7f080519

    const/16 v11, 0x8

    const/4 v3, 0x1

    const/4 v10, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->dismissProgressDialog()V

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    move-object v9, v0

    check-cast v9, Lcom/waiqin365/lightapp/kehu/a/a/am;

    invoke-virtual {v9}, Lcom/waiqin365/lightapp/kehu/a/a/am;->a()Ljava/util/Map;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const-string/jumbo v0, "cmDetails"

    invoke-interface {v1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const-string/jumbo v0, "linkManItems"

    invoke-interface {v1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    invoke-static {v2, v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->b(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    invoke-virtual {v9}, Lcom/waiqin365/lightapp/kehu/a/a/am;->b()Z

    move-result v0

    if-eqz v0, :cond_19

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v10}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->b(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v11}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->c(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/ScrollView;

    move-result-object v0

    invoke-virtual {v0, v10}, Landroid/widget/ScrollView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->d(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->e(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Ljava/util/ArrayList;

    move-result-object v2

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;

    move-result-object v4

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v5}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v5

    iget-object v6, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v6}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v6

    iget-object v7, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v7}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v7

    iget-object v8, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v8}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->j(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    move-result-object v8

    invoke-static/range {v0 .. v8}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/app/Activity;Landroid/widget/LinearLayout;Ljava/util/ArrayList;ZLandroid/view/View;Landroid/view/View;Landroid/view/View;Landroid/view/View;Landroid/view/View;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->c(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/ScrollView;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/b;-><init>(Lcom/waiqin365/lightapp/kehu/a;)V

    invoke-virtual {v0, v1}, Landroid/widget/ScrollView;->post(Ljava/lang/Runnable;)Z

    move v1, v10

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->e(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_b

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->e(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bd;

    const-string/jumbo v2, "type_id"

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v4

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_3

    move v2, v3

    :goto_2
    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->a(Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v2

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setDescription(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v2

    const-string/jumbo v4, ""

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setFirstItemName(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v2

    const-string/jumbo v4, "0"

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setLeafNodeOnly(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v2

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setWindowMode(Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v2

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v4}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->l(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setTradeType(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v4

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    if-eqz v2, :cond_4

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    :goto_3
    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v4

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    if-eqz v2, :cond_5

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    :goto_4
    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setCode(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v2

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->c:Ljava/lang/String;

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setMustinput(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v4

    iget-boolean v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->m:Z

    if-nez v2, :cond_6

    move v2, v3

    :goto_5
    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setEdit(Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->g(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;

    move-result-object v2

    iget-boolean v4, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->n:Z

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CMCustomerTypePickerView_vertical;->setViewIgnore(Z)V

    :cond_1
    const-string/jumbo v2, "district_id"

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v4

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_7

    move v2, v3

    :goto_6
    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;->a(Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v2

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;->setDescription(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v4

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    if-eqz v2, :cond_8

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    :goto_7
    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v4

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    if-eqz v2, :cond_9

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    :goto_8
    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;->setCode(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v2

    iget-object v4, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->c:Ljava/lang/String;

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;->setMustinput(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v4

    iget-boolean v2, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->m:Z

    if-nez v2, :cond_a

    move v2, v3

    :goto_9
    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;->setEdit(Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v2

    iget-boolean v4, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->n:Z

    invoke-virtual {v2, v4}, Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;->setViewIgnore(Z)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->h(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;

    move-result-object v2

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->b:Ljava/lang/String;

    invoke-virtual {v2, v0}, Lcom/waiqin365/lightapp/kehu/view/CustomerareapickerView_vertical;->setMaxlen(Ljava/lang/String;)V

    :cond_2
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_1

    :cond_3
    move v2, v10

    goto/16 :goto_2

    :cond_4
    const-string/jumbo v2, ""

    goto/16 :goto_3

    :cond_5
    const-string/jumbo v2, ""

    goto/16 :goto_4

    :cond_6
    move v2, v10

    goto/16 :goto_5

    :cond_7
    move v2, v10

    goto :goto_6

    :cond_8
    const-string/jumbo v2, ""

    goto :goto_7

    :cond_9
    const-string/jumbo v2, ""

    goto :goto_8

    :cond_a
    move v2, v10

    goto :goto_9

    :cond_b
    iget-object v4, v9, Lcom/waiqin365/lightapp/kehu/a/a/am;->d:Ljava/util/ArrayList;

    move v2, v10

    :goto_a
    if-eqz v4, :cond_18

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v2, v0, :cond_18

    invoke-virtual {v4, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bd;

    const-string/jumbo v1, "location_c"

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_10

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v5

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_d

    move v1, v3

    :goto_b
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/view/LocationView_Vertical;->a(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v1

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/view/LocationView_Vertical;->setDescription(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v1

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/view/LocationView_Vertical;->setCode(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v5

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->n:Z

    if-eqz v1, :cond_e

    move v1, v11

    :goto_c
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/view/LocationView_Vertical;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v5

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    if-eqz v1, :cond_f

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    :goto_d
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/view/LocationView_Vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->i(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/LocationView_Vertical;

    move-result-object v1

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->c:Ljava/lang/String;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/LocationView_Vertical;->setIsMust(Ljava/lang/String;)V

    :cond_c
    :goto_e
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_a

    :cond_d
    move v1, v10

    goto :goto_b

    :cond_e
    move v1, v10

    goto :goto_c

    :cond_f
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1, v12}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    goto :goto_d

    :cond_10
    const-string/jumbo v1, "addr"

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_14

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->j(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    move-result-object v5

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_11

    move v1, v3

    :goto_f
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->a(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->j(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    move-result-object v1

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->setDescription(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->j(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    move-result-object v1

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->setCode(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->j(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    move-result-object v5

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->m:Z

    if-nez v1, :cond_12

    move v1, v3

    :goto_10
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->setEdit(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->j(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    move-result-object v1

    iget-boolean v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->n:Z

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->setViewIgnore(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->j(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    move-result-object v5

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    if-eqz v1, :cond_13

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    :goto_11
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->j(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;

    move-result-object v1

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->c:Ljava/lang/String;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/kehu/view/SingleTextView_vertical;->setMustinput(Ljava/lang/String;)V

    goto :goto_e

    :cond_11
    move v1, v10

    goto :goto_f

    :cond_12
    move v1, v10

    goto :goto_10

    :cond_13
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1, v12}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    goto :goto_11

    :cond_14
    const-string/jumbo v1, "name"

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    invoke-virtual {v1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_c

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;

    move-result-object v5

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_15

    move v1, v3

    :goto_12
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;->a(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;

    move-result-object v1

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->B:Ljava/lang/String;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;->setDescription(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;

    move-result-object v1

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->h:Ljava/lang/String;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;->setCode(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;

    move-result-object v5

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    if-eqz v1, :cond_16

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->g:Ljava/lang/String;

    :goto_13
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;->setLabel(Ljava/lang/CharSequence;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;

    move-result-object v1

    iget-object v5, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->c:Ljava/lang/String;

    invoke-virtual {v1, v5}, Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;->setMustinput(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;

    move-result-object v5

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->m:Z

    if-nez v1, :cond_17

    move v1, v3

    :goto_14
    invoke-virtual {v5, v1}, Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;->setEdit(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->f(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;

    move-result-object v1

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/b/bd;->n:Z

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/kehu/view/CustomerNameCheckView_vertical;->setViewIgnore(Z)V

    goto/16 :goto_e

    :cond_15
    move v1, v10

    goto :goto_12

    :cond_16
    const-string/jumbo v1, ""

    goto :goto_13

    :cond_17
    move v1, v10

    goto :goto_14

    :cond_18
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->d(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/LinearLayout;

    move-result-object v0

    invoke-virtual {v0, v10}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->m(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->n(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const-string/jumbo v1, ""

    const-string/jumbo v2, ""

    invoke-static {v0, v1, v2}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :cond_19
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/TextView;

    move-result-object v0

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->b(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    invoke-virtual {v0, v10}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->b(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Lcom/waiqin365/lightapp/view/NoNetView;

    move-result-object v0

    iget v1, v9, Lcom/waiqin365/lightapp/kehu/a/a/am;->c:I

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->a(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->c(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/ScrollView;

    move-result-object v0

    invoke-virtual {v0, v11}, Landroid/widget/ScrollView;->setVisibility(I)V

    goto/16 :goto_0

    :pswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/kehu/a/a/as;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/as;->b()Z

    move-result v1

    if-eqz v1, :cond_24

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->d:Ljava/lang/String;

    if-eqz v1, :cond_1f

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1f

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const-string/jumbo v2, "linkman"

    invoke-static {v1, v2}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/as;->c()Lcom/waiqin365/lightapp/kehu/b/o;

    move-result-object v3

    if-eqz v3, :cond_1c

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, "cm/"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/waiqin365/lightapp/kehu/b/o;->d:Ljava/lang/String;

    const-string/jumbo v1, ""

    iput-object v1, v3, Lcom/waiqin365/lightapp/kehu/b/o;->e:Ljava/lang/String;

    move v2, v10

    :goto_15
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->d(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v1

    if-ge v2, v1, :cond_1b

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->d(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    instance-of v1, v1, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    if-eqz v1, :cond_1a

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->d(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;->m()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/waiqin365/lightapp/kehu/b/o;->f:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->d(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/LinearLayout;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    invoke-virtual {v1, v3}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->a(Lcom/waiqin365/lightapp/kehu/b/o;)V

    :cond_1a
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_15

    :cond_1b
    new-instance v1, Landroid/content/Intent;

    const-string/jumbo v2, "android.intent.action.RUN"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const-class v3, Lcom/fiberhome/upload/UpLoadService;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :cond_1c
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->dismissProgressDialog()V

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->e:Ljava/lang/String;

    if-eqz v1, :cond_1d

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->e:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_1d

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->e:Ljava/lang/String;

    invoke-static {v1, v2, v10}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_1d
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/as;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v1

    if-eqz v1, :cond_1e

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v1}, Lcom/waiqin365/base/db/offlinedata/d;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/d;

    move-result-object v1

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/as;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/offlinedata/d;->a(Lcom/waiqin365/lightapp/kehu/b/am;)Z

    move-result v1

    if-eqz v1, :cond_1e

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "customerInfo"

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/as;->a()Lcom/waiqin365/lightapp/kehu/b/am;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const/16 v2, 0x6f

    invoke-virtual {v0, v2, v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->setResult(ILandroid/content/Intent;)V

    :cond_1e
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->finish()V

    goto/16 :goto_0

    :cond_1f
    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->d:Ljava/lang/String;

    if-eqz v1, :cond_23

    const-string/jumbo v1, "2"

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_20

    const-string/jumbo v1, "3"

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_23

    :cond_20
    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->d:Ljava/lang/String;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/as;->d()Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/as;->e()Ljava/util/ArrayList;

    move-result-object v4

    new-instance v5, Landroid/content/Intent;

    iget-object v6, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const-class v7, Lcom/waiqin365/lightapp/kehu/CMReAddCustomerActivity;

    invoke-direct {v5, v6, v7}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v6, "3"

    invoke-virtual {v6, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_22

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/as;->f()Lcom/waiqin365/lightapp/kehu/b/ch;

    move-result-object v0

    const-string/jumbo v1, "cmType"

    invoke-virtual {v5, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v1, "repeatCustomer"

    invoke-virtual {v5, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    :cond_21
    :goto_16
    invoke-static {}, Lcom/waiqin365/lightapp/kehu/c/a;->a()Lcom/waiqin365/lightapp/kehu/c/a;

    move-result-object v0

    const-string/jumbo v1, "cm_similar_clients"

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/kehu/c/a;->a(Ljava/lang/String;Ljava/lang/Object;)V

    const-string/jumbo v1, "cm_nearby_clients"

    invoke-virtual {v0, v1, v4}, Lcom/waiqin365/lightapp/kehu/c/a;->a(Ljava/lang/String;Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v0, v5, v10}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    goto/16 :goto_0

    :cond_22
    const-string/jumbo v0, "2"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_21

    const-string/jumbo v0, "cmType"

    const/4 v1, 0x2

    invoke-virtual {v5, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    goto :goto_16

    :cond_23
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    const v5, 0x7f0800d1

    invoke-virtual {v4, v5}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->e:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0, v10}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    goto/16 :goto_0

    :cond_24
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->dismissProgressDialog()V

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->e:Ljava/lang/String;

    if-eqz v1, :cond_25

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-gtz v2, :cond_26

    :cond_25
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    iget v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/as;->c:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    :goto_17
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;->a(Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    goto/16 :goto_0

    :cond_26
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/a;->a:Lcom/waiqin365/lightapp/kehu/CMAddCustomerActivity;

    invoke-static {v0, v1, v10}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto :goto_17

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
